# -*- coding: utf-8 -*-
"""
main
2025/9/8
@author: zhangzida
"""
import requests,pytest
@pytest.fixture(scope='function')
def test_login():
    login_url='http://10.59.9.18/movieApi/user/v2/login'
    login_data={
        'email':'1478997572@qq.com',
        'pwd':'eWLPHopE945d2ivttHaQTQ=='
    }
    login=requests.post(url=login_url,data=login_data)
    print(login.json())
    login1=login.json()
    yield login1['result']['sessionId'],login1['result']['userId']